/*
 * Plotter.h
 *
 *  Created on: 27/07/2011
 *      Author: godinho
 */

#ifndef PLOTTER_H_
#define PLOTTER_H_

#include "CategoryDataSet.h"
#include "AxisPainter.h"
#include <qpainter.h>
#include <qevent.h>
#include <qvector.h>

class Plotter {
public:
	Plotter();
	virtual ~Plotter();

	virtual void plot(QPainter* painter, QRect bounds, CategoryDataSet* dataset);

private:
	 void drawSerie(QPainter* painter, QRect bounds, Serie* s);
	 void drawPoint(QPainter* painter, double x, double y);

private:
	AxisPainter* mAxis;
	QVector<QColor> mColors;
};

#endif /* PLOTTER_H_ */
